package com.auxgroup.smarthome.enterpriseapi.requestbody;

/**
 * Created by kevinchen on 2017/3/12.
 */
public class DeviceAttrsDataBody {

    private int start_ts;
    private int end_ts;
    private String attrs;
    private int limit;
    private int skip;
    private String sort;

    public int getStart_ts() {
        return start_ts;
    }

    public void setStart_ts(int start_ts) {
        this.start_ts = start_ts;
    }

    public int getEnd_ts() {
        return end_ts;
    }

    public void setEnd_ts(int end_ts) {
        this.end_ts = end_ts;
    }

    public String getAttrs() {
        return attrs;
    }

    public void setAttrs(String attrs) {
        this.attrs = attrs;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getSkip() {
        return skip;
    }

    public void setSkip(int skip) {
        this.skip = skip;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public DeviceAttrsDataBody firstData(){
        this.limit = 1;
        this.skip = 0;
        return this;
    }

    public DeviceAttrsDataBody changePageable(int page, int size) {
        int skip = page*size;
        int limit = size;
        return this;
    }

}
